package com.dotmedia.utils;

/**
 * This class has utility method for the String Utils
 * @author siddharthsaha
 *
 */
public class StringUtils {
	
	/**
	 * This method returns true if the string is null. A string will be considered to be null if it is null or empty.
	 * @param string The string which is to be examined to be null or not
	 * @return true if the string is null or false if the string is not null
	 */
	public static boolean isStringNull(String string) {
		boolean isNull = false;
		if (string == null) {
			isNull = true;
		} else if (string.trim().length() == 0) {
			isNull = true;
		}
		return isNull;
	}
	
}
